Optimal. Leaf size=94 \[ \frac {65 x+4}{682 \left (5 x^2+3 x+2\right )}+\frac {3}{968} \log \left (2 x^2-x+3\right )-\frac {3}{968} \log \left (5 x^2+3 x+2\right )+\frac {7 \tan ^{-1}\left (\frac {1-4 x}{\sqrt {23}}\right )}{484 \sqrt {23}}+\frac {2891 \tan ^{-1}\left (\frac {10 x+3}{\sqrt {31}}\right )}{15004 \sqrt {31}} \]
________________________________________________________________________________________
Rubi [A] time = 0.09, antiderivative size = 94, normalized size of antiderivative = 1.00, number of steps used = 10, number of rules used = 6, integrand size = 25, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.240, Rules used = {974, 1072, 634, 618, 204, 628} \begin {gather*} \frac {65 x+4}{682 \left (5 x^2+3 x+2\right )}+\frac {3}{968} \log \left (2 x^2-x+3\right )-\frac {3}{968} \log \left (5 x^2+3 x+2\right )+\frac {7 \tan ^{-1}\left (\frac {1-4 x}{\sqrt {23}}\right )}{484 \sqrt {23}}+\frac {2891 \tan ^{-1}\left (\frac {10 x+3}{\sqrt {31}}\right )}{15004 \sqrt {31}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 204
Rule 618
Rule 628
Rule 634
Rule 974
Rule 1072
Rubi steps
\begin {align*} \int \frac {1}{\left (3-x+2 x^2\right ) \left (2+3 x+5 x^2\right )^2} \, dx &=\frac {4+65 x}{682 \left (2+3 x+5 x^2\right )}-\frac {\int \frac {-1804+1397 x-1430 x^2}{\left (3-x+2 x^2\right ) \left (2+3 x+5 x^2\right )} \, dx}{7502}\\ &=\frac {4+65 x}{682 \left (2+3 x+5 x^2\right )}-\frac {\int \frac {18755-22506 x}{3-x+2 x^2} \, dx}{1815484}-\frac {\int \frac {-158026+56265 x}{2+3 x+5 x^2} \, dx}{1815484}\\ &=\frac {4+65 x}{682 \left (2+3 x+5 x^2\right )}+\frac {3}{968} \int \frac {-1+4 x}{3-x+2 x^2} \, dx-\frac {3}{968} \int \frac {3+10 x}{2+3 x+5 x^2} \, dx-\frac {7}{968} \int \frac {1}{3-x+2 x^2} \, dx+\frac {2891 \int \frac {1}{2+3 x+5 x^2} \, dx}{30008}\\ &=\frac {4+65 x}{682 \left (2+3 x+5 x^2\right )}+\frac {3}{968} \log \left (3-x+2 x^2\right )-\frac {3}{968} \log \left (2+3 x+5 x^2\right )+\frac {7}{484} \operatorname {Subst}\left (\int \frac {1}{-23-x^2} \, dx,x,-1+4 x\right )-\frac {2891 \operatorname {Subst}\left (\int \frac {1}{-31-x^2} \, dx,x,3+10 x\right )}{15004}\\ &=\frac {4+65 x}{682 \left (2+3 x+5 x^2\right )}+\frac {7 \tan ^{-1}\left (\frac {1-4 x}{\sqrt {23}}\right )}{484 \sqrt {23}}+\frac {2891 \tan ^{-1}\left (\frac {3+10 x}{\sqrt {31}}\right )}{15004 \sqrt {31}}+\frac {3}{968} \log \left (3-x+2 x^2\right )-\frac {3}{968} \log \left (2+3 x+5 x^2\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.08, size = 94, normalized size = 1.00 \begin {gather*} \frac {65 x+4}{682 \left (5 x^2+3 x+2\right )}+\frac {3}{968} \log \left (2 x^2-x+3\right )-\frac {3}{968} \log \left (5 x^2+3 x+2\right )-\frac {7 \tan ^{-1}\left (\frac {4 x-1}{\sqrt {23}}\right )}{484 \sqrt {23}}+\frac {2891 \tan ^{-1}\left (\frac {10 x+3}{\sqrt {31}}\right )}{15004 \sqrt {31}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
IntegrateAlgebraic [F] time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {1}{\left (3-x+2 x^2\right ) \left (2+3 x+5 x^2\right )^2} \, dx \end {gather*}
Verification is not applicable to the result.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.41, size = 117, normalized size = 1.24 \begin {gather*} \frac {132986 \, \sqrt {31} {\left (5 \, x^{2} + 3 \, x + 2\right )} \arctan \left (\frac {1}{31} \, \sqrt {31} {\left (10 \, x + 3\right )}\right ) - 13454 \, \sqrt {23} {\left (5 \, x^{2} + 3 \, x + 2\right )} \arctan \left (\frac {1}{23} \, \sqrt {23} {\left (4 \, x - 1\right )}\right ) - 66309 \, {\left (5 \, x^{2} + 3 \, x + 2\right )} \log \left (5 \, x^{2} + 3 \, x + 2\right ) + 66309 \, {\left (5 \, x^{2} + 3 \, x + 2\right )} \log \left (2 \, x^{2} - x + 3\right ) + 2039180 \, x + 125488}{21395704 \, {\left (5 \, x^{2} + 3 \, x + 2\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.20, size = 78, normalized size = 0.83 \begin {gather*} \frac {2891}{465124} \, \sqrt {31} \arctan \left (\frac {1}{31} \, \sqrt {31} {\left (10 \, x + 3\right )}\right ) - \frac {7}{11132} \, \sqrt {23} \arctan \left (\frac {1}{23} \, \sqrt {23} {\left (4 \, x - 1\right )}\right ) + \frac {65 \, x + 4}{682 \, {\left (5 \, x^{2} + 3 \, x + 2\right )}} - \frac {3}{968} \, \log \left (5 \, x^{2} + 3 \, x + 2\right ) + \frac {3}{968} \, \log \left (2 \, x^{2} - x + 3\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.01, size = 77, normalized size = 0.82 \begin {gather*} \frac {2891 \sqrt {31}\, \arctan \left (\frac {\left (10 x +3\right ) \sqrt {31}}{31}\right )}{465124}-\frac {7 \sqrt {23}\, \arctan \left (\frac {\left (4 x -1\right ) \sqrt {23}}{23}\right )}{11132}+\frac {3 \ln \left (2 x^{2}-x +3\right )}{968}-\frac {3 \ln \left (5 x^{2}+3 x +2\right )}{968}-\frac {-\frac {286 x}{31}-\frac {88}{155}}{484 \left (x^{2}+\frac {3}{5} x +\frac {2}{5}\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.96, size = 78, normalized size = 0.83 \begin {gather*} \frac {2891}{465124} \, \sqrt {31} \arctan \left (\frac {1}{31} \, \sqrt {31} {\left (10 \, x + 3\right )}\right ) - \frac {7}{11132} \, \sqrt {23} \arctan \left (\frac {1}{23} \, \sqrt {23} {\left (4 \, x - 1\right )}\right ) + \frac {65 \, x + 4}{682 \, {\left (5 \, x^{2} + 3 \, x + 2\right )}} - \frac {3}{968} \, \log \left (5 \, x^{2} + 3 \, x + 2\right ) + \frac {3}{968} \, \log \left (2 \, x^{2} - x + 3\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 3.57, size = 95, normalized size = 1.01 \begin {gather*} \frac {\frac {13\,x}{682}+\frac {2}{1705}}{x^2+\frac {3\,x}{5}+\frac {2}{5}}+\ln \left (x-\frac {1}{4}-\frac {\sqrt {23}\,1{}\mathrm {i}}{4}\right )\,\left (\frac {3}{968}+\frac {\sqrt {23}\,7{}\mathrm {i}}{22264}\right )-\ln \left (x-\frac {1}{4}+\frac {\sqrt {23}\,1{}\mathrm {i}}{4}\right )\,\left (-\frac {3}{968}+\frac {\sqrt {23}\,7{}\mathrm {i}}{22264}\right )-\ln \left (x+\frac {3}{10}-\frac {\sqrt {31}\,1{}\mathrm {i}}{10}\right )\,\left (\frac {3}{968}+\frac {\sqrt {31}\,2891{}\mathrm {i}}{930248}\right )+\ln \left (x+\frac {3}{10}+\frac {\sqrt {31}\,1{}\mathrm {i}}{10}\right )\,\left (-\frac {3}{968}+\frac {\sqrt {31}\,2891{}\mathrm {i}}{930248}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.32, size = 102, normalized size = 1.09 \begin {gather*} \frac {65 x + 4}{3410 x^{2} + 2046 x + 1364} + \frac {3 \log {\left (x^{2} - \frac {x}{2} + \frac {3}{2} \right )}}{968} - \frac {3 \log {\left (x^{2} + \frac {3 x}{5} + \frac {2}{5} \right )}}{968} - \frac {7 \sqrt {23} \operatorname {atan}{\left (\frac {4 \sqrt {23} x}{23} - \frac {\sqrt {23}}{23} \right )}}{11132} + \frac {2891 \sqrt {31} \operatorname {atan}{\left (\frac {10 \sqrt {31} x}{31} + \frac {3 \sqrt {31}}{31} \right )}}{465124} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________